<?php

/*
|--------------------------------------------------------------------------
| Questions Routes
|--------------------------------------------------------------------------
|
 */

$router->get('/', [
    'uses' => 'QuestionsController@index'
]);

$router->post('/', [
    'uses' => 'QuestionsController@store'
]);

$router->get('/{id}', [
    'uses' => 'QuestionsController@show'
]);

$router->put('/{id}/check', [
    'uses' => 'QuestionsController@check'
]);

$router->put('/{id}/exam', [
    'uses' => 'QuestionsController@exam'
]);

$router->put('/{id}', [
    'uses' => 'QuestionsController@update'
]);

$router->post('/{id}/graph', [
    'uses' => 'QuestionsController@updateGraph'
]);

$router->get('/{id}/graph', [
    'uses' => 'QuestionsController@getGraph'
]);

$router->delete('/{id}', [
    'uses' => 'QuestionsController@destory'
]);
